﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sundry.IDAL
{
    public interface IDbSession
    {
        /// <summary>
        /// 统一SaveChange方法
        /// </summary>
        /// <returns></returns>
        int SaveChange();
        /// <summary>
        /// 获取管理员仓储
        /// </summary>
        IDAL.IAdminRepository AdminRepository { get; }
        /// <summary>
        /// 获取管理员登录日志仓储
        /// </summary>
        IDAL.IAdminLoginLogRepository AdminLoginLogRepository { get; }
        /// <summary>
        /// 获取操作日志仓储
        /// </summary>
        IDAL.IAdminOperationRepository AdminOperationRepository { get; }
        /// <summary>
        /// 获取权限仓储
        /// </summary>
        IDAL.IAuthoryRepository AuthoryRepository { get; }
        /// <summary>
        /// 获取操作目录仓储
        /// </summary>
        IDAL.IAdminMenuRepository AdminMenuRepository { get; }
        /// <summary>
        /// 获取品牌仓储
        /// </summary>
        IDAL.IBrandRepository BrandRepository { get; }
        /// <summary>
        /// 获取分类仓储
        /// </summary>
        IDAL.ICategoryRepository CategoryRepository { get; }
    }
}
